Skip to content

cleanup of redundant patterns #6546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jogru0
Copy link

@jogru0 jogru0 commented Apr 21, 2025

Just some minor code cleanups.

@@ -1297,7 +1297,7 @@ fn join_bounds_inner(
// or the single item is of type `Trait`,
// and any of the internal arrays contains more than one item;
let retry_with_force_newline = match context.config.style_edition() {
style_edition @ _ if style_edition <= StyleEdition::Edition2021 => {
Edition2015 | Edition2018 | Edition2021 => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to import StyleEdition::*. Should still fit on one line even if you use the fully qualified variant names.

Suggested change
Edition2015 | Edition2018 | Edition2021 => {
StyleEdition::Edition2015 | StyleEdition::Edition2018 | StyleEdition::Edition2021 => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants